package sample.spring.ibatis.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sample.spring.ibatis.dao.UserDAO;
import sample.spring.ibatis.model.User;
import sample.spring.ibatis.service.IUserService;

import java.util.List;

/**
 * Created by yangyang on 15/10/2.
 */
@Service
public class UserServiceImpl implements IUserService{

    @Autowired
    UserDAO userDAO;
    @Override
    public List<User> getAllUsers() {
        return userDAO.getAllUsers();
    }
}
